package com.cazor.dg.task;

import com.cazor.dg.app.AppReqService;
import com.cazor.dg.app.AppService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class Task4SubmitService {


    @Resource
    private AppService appService;
    @Resource
    private AppReqService appReqService;

    /**
     * 提交监测数据的任务
     * 1、获取所有可以调监测数据的传感器
     */
    public void insertDevDeviceParamDataTask() {
        long sid = System.currentTimeMillis();
        log.info("开始执行[监测数据]数据提交的任务------{}", sid);
        appService.insertDevDeviceParamDataBatch();
        log.info("结束执行[监测数据]数据提交的任务------{}", sid);
    }

}
